const editView = (localData, data) => {
    let markup = `
    <form action="" class="form-horizontal modal-form" id="form" role="form">
        <div class="form-group">
            <label for="rolename" class="col-xs-2 control-label">角色:</label>
            <div class="col-xs-9">
                <input type="text" id="rolename" name="rolename" value=${localData.rolename} class="form-control">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-xs-2 control-label">权限:</label>
            <div class="col-xs-9">
              <ul id="authlist">
                ${data}
              </ul>
            </div>
        </div>
        <div class="form-group">
            <div class="btn-box">
                <input type="button" class="btn btn-primary" id="submitBtn" value="提交">
            </div>
        </div>
    </form>
    `;

    let template = $.templates(markup);
    let compiledHtml = template.render(localData);

    return compiledHtml;

};

export {
    editView
}